target = test
CC = gcc
#CFLAGS = -O3 -Wall -Wextra -pedantic -std=c99
SRCS = $(wildcard *.c)
OBJS = $(SRCS:.c=.o)

all: $(target)

$(target): $(OBJS)
	$(CC) $(CFLAGS) -o $@ $^

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

.PHONY: all clean	
run:
	make all
	./$(target)
clean:
	rm -f $(OBJS) $(target) *.o *.exe